
set(MOBILE_UI_CLASSIFICATIONLIST_SOURCES
        classificationlist/arrowlinebutton.h
        classificationlist/arrowlinebutton.cpp
        classificationlist/mobilefilelistdelegate.h
        classificationlist/mobilefilelistdelegate.cpp
        classificationlist/mobilefilelistview.h
        classificationlist/mobilefilelistview.cpp
        classificationlist/mobilefilesecondwidget.h
        classificationlist/mobilefilesecondwidget.cpp
        classificationlist/mobilefilewidget.h
        classificationlist/mobilefilewidget.cpp
        classificationlist/timelineview.h
        classificationlist/timelineview.cpp
        classificationlist/timelinelistwidget.h
        classificationlist/timelinelistwidget.cpp
        classificationlist/timelineitem.h
        classificationlist/timelineitem.cpp
        )
source_group(classificationlist FILES ${MOBILE_UI_CLASSIFICATIONLIST_SOURCES})

set(MOBILE_UI_INITCONNECTWIN_SOURCES
        initconnectwin/initconnectwin.h
        initconnectwin/initconnectwin.cpp
        initconnectwin/interface_win.h
        initconnectwin/interface_win.cpp
        initconnectwin/rotationchart.h
        initconnectwin/rotationchart.cpp
        initconnectwin/usbconnwin.h
        initconnectwin/usbconnwin.cpp
        )
source_group(initconnectwin FILES ${MOBILE_UI_INITCONNECTWIN_SOURCES})

set(MOBILE_UI_STORAGELIST_SOURCES
        storagelist/mobilestoragewidget.h
        storagelist/mobilestoragewidget.cpp
        storagelist/mobilestorageviewwidget.h
        storagelist/mobilestorageviewwidget.cpp
        storagelist/mobilestoragelistview.h
        storagelist/mobilestoragelistview.cpp
        storagelist/mobilestoragelistdelegate.h
        storagelist/mobilestoragelistdelegate.cpp
        storagelist/copytocomputerbuttonwidget.h
        storagelist/copytocomputerbuttonwidget.cpp
        )
source_group(storagelist FILES ${MOBILE_UI_STORAGELIST_SOURCES})

set(MOBILE_UI_VIEW_SOURCES
        view/connectdialog.h
        view/connectdialog.cpp
        view/connectedtitlewin.h
        view/connectedtitlewin.cpp
        view/mobilefilelist.h
        view/mobilefilelist.cpp
        view/mobilefilelistitem.h
        view/mobilefilelistitem.cpp
        view/splitline.h
        view/splitline.cpp
        view/titlebar.h
        view/titlebar.cpp
        view/transmissiondialog.h
        view/transmissiondialog.cpp
        view/systemfontsize.h
        view/systemfontsize.cpp
        )
source_group(view FILES ${MOBILE_UI_VIEW_SOURCES})

set(MOBILE_UI_SOURCES
        ${MOBILE_UI_CLASSIFICATIONLIST_SOURCES}
        ${MOBILE_UI_INITCONNECTWIN_SOURCES}
        ${MOBILE_UI_STORAGELIST_SOURCES}
        ${MOBILE_UI_VIEW_SOURCES}
        mainwindow.h
        mainwindow.cpp
        )

add_library(mobileui ${MOBILE_UI_SOURCES})

target_include_directories(mobileui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/classificationlist)
target_include_directories(mobileui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/initconnectwin)
target_include_directories(mobileui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/storagelist)
target_include_directories(mobileui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/view)
target_include_directories(mobileui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

find_package(Qt5DBus COMPONENTS Dbus REQUIRED)
find_package(PkgConfig REQUIRED)

pkg_check_modules(KYSDK_QTWIDGETS kysdk-qtwidgets)
target_include_directories(mobileui PUBLIC ${KYSDK_QTWIDGETS_INCLUDE_DIRS})
target_link_directories(mobileui PUBLIC ${KYSDK_QTWIDGETS_LIBRARY_DIRS})
target_link_libraries(mobileui PUBLIC ${KYSDK_QTWIDGETS_LIBRARIES})

pkg_check_modules(KYSDK_UKENV kysdk-ukenv)
target_include_directories(mobileui PUBLIC ${KYSDK_UKENV_INCLUDE_DIRS})
target_link_directories(mobileui PUBLIC ${KYSDK_UKENV_LIBRARY_DIRS})
target_link_libraries(mobileui PUBLIC ${KYSDK_UKENV_LIBRARIES})

set(TOP_DIR ${CMAKE_CURRENT_LIST_DIR})
target_include_directories(mobileui PUBLIC ${TOP_DIR}/../kabase/Qt)

target_link_libraries(mobileui PUBLIC
        Qt${QT_VERSION_MAJOR}::Widgets
        ${Qt5DBus_LIBRARIES}
        projection
        ffmpegthumbnailer
        connectmanage
        filetransfer
        filesync
        filesearch
        mobile_common
        )




